package com.qingcheng.controller;

import com.alibaba.dubbo.config.annotation.Reference;
import com.qingcheng.entity.Result;
import com.qingcheng.service.goods.SkuService;
import com.qingcheng.service.goods.SpuService;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/spu")
@CrossOrigin
public class SpuController {
    @Reference
    private SkuService skuService;

    @Reference
    private SpuService spuService;
    @GetMapping("/pull")
    public Result sendSms(String id) {
        spuService.put(id);
        return new Result();
    }
}